import { axios } from '@/utils/request'

/**
 * 查询学年管理
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearPage (parameter) {
  return axios({
    url: '/sysSchoolYear/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 学年管理列表
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearList (parameter) {
  return axios({
    url: '/sysSchoolYear/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加学年管理
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearAdd (parameter) {
  return axios({
    url: '/sysSchoolYear/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑学年管理
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearEdit (parameter) {
  return axios({
    url: '/sysSchoolYear/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除学年管理
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearDelete (parameter) {
  return axios({
    url: '/sysSchoolYear/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出学年管理
 *
 * @author levin
 * @date 2022-07-05 15:12:40
 */
export function sysSchoolYearExport (parameter) {
  return axios({
    url: '/sysSchoolYear/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
